package com.gxa.uhome.service.impl;

import com.gxa.uhome.mapper.RoleMapper;
import com.gxa.uhome.pojo.Role;
import com.gxa.uhome.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: qingyao
 * @date: 9:26 2021/6/9
 */
@Service("RoleService")
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleMapper roleMapper;
    @Override
    public List<Role> selectall(Integer page, Integer size) {
        return roleMapper.selectall(page,size);
    }

    @Override
    public List<Role> selectbyname(String name) {
        return roleMapper.selectbyname(name);
    }

    @Override
    public Integer insert(Role role) {
        return roleMapper.insert(role);
    }

    @Override
    public Integer update(Role role) {
        return roleMapper.update(role);
    }

    @Override
    public Integer delete(Integer[] id) {
        return roleMapper.delete(id);
    }
}
